package smtpserver

// SMTP 命令常量
const (
	CMD_HELO     = "HELO"
	CMD_EHLO     = "EHLO"
	CMD_MAIL     = "MAIL"
	CMD_RCPT     = "RCPT"
	CMD_DATA     = "DATA"
	CMD_RSET     = "RSET"
	CMD_VRFY     = "VRFY"
	CMD_NOOP     = "NOOP"
	CMD_QUIT     = "QUIT"
	CMD_STARTTLS = "STARTTLS"
	CMD_AUTH     = "AUTH"
)

// SMTP 认证方法
const (
	AUTH_PLAIN = "PLAIN"
	AUTH_LOGIN = "LOGIN"
)

// SMTP 响应码
const (
	CODE_READY             = "220" // 服务就绪
	CODE_BYE               = "221" // 服务关闭传输通道
	CODE_AUTH_OK           = "235" // 认证成功
	CODE_OK                = "250" // 请求的命令完成
	CODE_AUTH_CONTINUE     = "334" // 继续认证
	CODE_START_MAIL_INPUT  = "354" // 开始邮件输入，以"."结束
	CODE_SYNTAX_ERROR      = "500" // 语法错误，命令无法识别
	CODE_PARAMETER_ERROR   = "501" // 参数语法错误
	CODE_COMMAND_NOT_IMP   = "502" // 命令未实现
	CODE_BAD_SEQUENCE      = "503" // 错误的命令序列
	CODE_PARAMETER_NOT_IMP = "504" // 参数未实现
	CODE_AUTH_REQUIRED     = "530" // 需要认证
	CODE_AUTH_FAILED       = "535" // 认证失败
	CODE_MAILBOX_UNAVAIL   = "550" // 邮箱不可用
	CODE_INVALID_MAILBOX   = "553" // 邮箱名不可用
)
